package io.gitee.guoguoleo.wrapper;

import java.util.List;

public interface IWrapper<T> {

    default T one() {
        throw new RuntimeException("不支持该查询方法");
    }

    default T one(QueryWrapper<T> queryWrapper) {
        throw new RuntimeException("不支持该查询方法");
    }


    default List<T> list() {
        throw new RuntimeException("不支持该查询方法");
    }

    default List<T> list(QueryWrapper<T> queryWrapper) {
        throw new RuntimeException("不支持该查询方法");
    }

    default boolean update() {
        throw new RuntimeException("不支持该更新方法");
    }

    default boolean remove() {
        throw new RuntimeException("不支持该删除方法");
    }

    default boolean update(UpdateWrapper<T> updateWrapper) {
        throw new RuntimeException("不支持该更新方法");
    }

    default boolean update(UpdateWrapper<T> updateWrapper, T entity) {
        throw new RuntimeException("不支持该更新方法");
    }

    default boolean remove(UpdateWrapper<T> updateWrapper) {
        throw new RuntimeException("不支持该更新方法");
    }


}
